package cn.sm1234.user.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户Controller
 */
@RequestMapping("/user")
@RestController   // @RestController=@RequestMapping + @ResponseBody
public class UserController {


  

    /**
     * 根据id查询用户
     */
    @RequestMapping(value = "/user/{id}",method = RequestMethod.GET)
    public String findById(@PathVariable Integer id){
        System.out.println("用户微服务1111111");
        return "你好啊22222222222222";
    }
    /**
     * 根据id查询用户
     */
    @GetMapping(value = "/test")
    public String test(){
        return "你好啊22222222222222";
    }
}
